export const iterationCount = 1000
export const keySize = 128

export const iv = CryptoJS.lib.WordArray.random(128 / 8).toString(CryptoJS.enc.Hex)
export const salt = CryptoJS.lib.WordArray.random(128 / 8).toString(CryptoJS.enc.Hex)

let aesUtil = new AesUtil(keySize, iterationCount)

export function getAesStr(passphrase, content) {
  return aesUtil.encrypt(salt, iv, passphrase, content)
}

